package com.gxa.uhome.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * User: Sanruy Mu
 * Date: 2021/06/07 11:30
 * Description:
 * Version: V1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="商品类别基础资料实体类")
public class GoodsType implements Serializable {
        @ApiModelProperty(name="id",value="主键",dataType ="Integer")
        private Integer id;
        @ApiModelProperty(name="pid",value="父类id",dataType ="Integer")
        private Integer pid;
        @ApiModelProperty(name="name",value="商品类别名称",dataType ="String")
        private String name;
        @ApiModelProperty(name="sort",value="类别的序号",dataType ="Integer")
        private Integer sort;
        @ApiModelProperty(name="listGoodsType",value="子单元素的list集合",dataType ="List")
        private List<GoodsType> listGoodsType;
        private GoodsType goodsType;

        public GoodsType(Integer id, Integer pid, String name, Integer sort, List<GoodsType> listGoodsType) {
                this.id = id;
                this.pid = pid;
                this.name = name;
                this.sort = sort;
                this.listGoodsType = listGoodsType;
        }
}